<!DOCTYPE html>
<html>
<head>
	<title></title>
	<!--jquery-->
	<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<a href="#" id="a">商品</a>
</body>
<script>
	$('#a').click(function(){
		$.post('./publish',{'out_id':444444444},function(data){
			// alert(data);
			if(data == 1){
				location.href='./home/model/222';
			}else{
				alert('to do');
			}
		});
	});
</script>
</html>